import cv2
import imutils
import numpy as np
from numpy import *
import os
import math
from tkinter import *
from tkinter.filedialog import askdirectory
#以下代码为PSO.py脚本的缓存结果，仅做界面演示，具体粒子群求参过程见PSO.py脚本
def ttd(dir):
    dir=str(dir)
    key=dir[-1]
    a=0
    b=0
    c=0
    d=0
    x=[]
    if key=="T":
        a=96.865
        b=14.696
        c=3324.083
        d=577.682
    else:
        a=173.269
        b=8.862
        c=1319.926
        d=499.031


    return a,b,c,d














